//
// Created by 吴喆 on 2020/3/5.
//

#import "Player.h"

Player::Player(Scene *scene_) : Playable(scene_) {
    objectType = OBJECT_TYPE::PLAYER;
}

void Player::init() {
    initGameObject();
    initBox();
    initPlayerStateMachine();
    Input::getInstance()->attach2KeyboardClick(this);
}

void Player::onKeyboardInput(KeyEvent *event) {
    handleInput(event);
}

